package com.zhuangjie.rider.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 收益进出账记录表
 * </p>
 *
 * @author zhuangjie
 * @since 2024-04-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("rider_money_record")
@ApiModel(value = "RiderMoneyRecord对象", description = "收益进出账记录表")
public class RiderMoneyRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("骑手id")
    @TableField("rider_id")
    private Long riderId;

    @ApiModelProperty("操作金额")
    @TableField("operation_amount")
    private BigDecimal operationAmount;

    @ApiModelProperty("状态（0 等待入账 1已入账）")
    @TableField("status")
    private Byte status;

    @ApiModelProperty("说明(如：接单入账)")
    @TableField("source_describe")
    private String sourceDescribe;

    @ApiModelProperty("最早到账时间")
    @TableField("earliest_arrival_time")
    private LocalDateTime earliestArrivalTime;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
